package sandbox.vaadin.skiller.skillgroupmanager;

import sandbox.vaadin.skiller.entity.Skillgroup;

import com.vaadin.addon.jpacontainer.JPAContainer;

class JPAContainerSkillgroup extends JPAContainer<Skillgroup>
{
	private static final long serialVersionUID = 1L;

	// constructor from super class
  public JPAContainerSkillgroup() { super(Skillgroup.class); }

  /**
   * indicates whether a node has children or not
   * @see com.vaadin.addon.jpacontainer.JPAContainer#areChildrenAllowed(java.lang.Object)
   */
  @Override public boolean areChildrenAllowed(Object itemId) { return getChildren(itemId).size() > 0; }
}